﻿using DotXxlJob.Core;
using DotXxlJob.Core.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace xxlJob任务调度.MyxxlJob
{
    [JobHandler("XxlJobToolTest")]
    public class XxlJobTool : AbstractJobHandler
    {
        public override Task<ReturnT> Execute(JobExecuteContext context)
        {
            var jobParameter = context.JobParameter;//获取调整该Job时传递的参数
            Console.WriteLine("接收到的参数："+jobParameter);
            Console.WriteLine("这是一个初始的任务【XxlJobToolTest】");
            return Task.FromResult(ReturnT.SUCCESS);
        }
    }
}
